package com.wuchao.spring.ioc.function;

import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @Author wuchao66
 * @Date 2022/9/27 14:20
 * @PackageName:com.wuchao.spring.ioc.function
 * @ClassName: Test
 * @Description: TODO
 * @Param
 * @Version 1.0
 */
public class Test {
    public static void main(String[] args) {
        Point151 point151 = new Point151();
        point151.show();
        ClassPathXmlApplicationContext cpxc =
                new ClassPathXmlApplicationContext("ApplicationContext.xml");
        ((Point151)cpxc.getBean("Point151")).show();
       /* point151.show("xxxx");*/
        //show主动控制
        //ioc反转， 低耦合 低侵入式

    }
}

